package com.lingchen.nto;

import com.lingchen.entity.Course;
import com.lingchen.enums.MenuEnum;

import java.util.List;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2018/2/27
 * Function  菜单
 */
public class Menu {

    /**
     * 类型
     */
    private MenuEnum menuEnum;

    /**
     * 科目  如果含有此项 表示 属于  考试与搜藏里面
     */
    private List<Course> courses;

    public Menu() {
    }

    public Menu(MenuEnum menuEnum, List<Course> courses) {
        this.menuEnum = menuEnum;
        this.courses = courses;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    public MenuEnum getMenuEnum() {
        return menuEnum;
    }

    public void setMenuEnum(MenuEnum menuEnum) {
        this.menuEnum = menuEnum;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuEnum=" + menuEnum +
                ", courses=" + courses +
                '}';
    }
}
